{% extends "base.html" %}
{% load static %}

{% block title %}
    Войти
{% endblock title %}

{% block loginform %}
<section class="home show">
    <div class="form_container">
      <i class="uil uil-times form_close"></i>
      <!-- Login From -->
      <div class="form login_form">
        <form  action="{% url 'account:login' %}" method="post">
          {% csrf_token %}
          <h2>Авторизация</h2>
  
          <div class="input_box">
            <label class="inputArea" for="id_username" class="form-label"></label>
            {{ form.username }}
            <i class="uil uil-envelope-alt email"></i>
          </div>
          <div class="input_box">
            <label class="inputArea" for="id_password" class="form-label"></label>
            {{ form.password }}
            <i class="uil uil-lock password"></i>
            <i class="uil uil-eye-slash pw_hide"></i>
          </div>
  
          <div class="option_field">
            <!-- <span class="checkbox">
              <input type="checkbox" id="check" />
              <label for="check">Remember me</label>
            </span> -->
            <!-- {{ form.errors }} -->
            {{ form.username.errors }}
            <a href="{% url "account:password-change" %}" class="forgot_pw">Забыли пароль?</a>
          </div>
  
          <button class="button">Войти</button>
  
          <div class="login_signup">Нет аккаунта? <a href="{% url 'account:register' %}" id="signup">Регистрация</a></div>
        </form>
      </div>
  
      
    </div>
  </section>
{% endblock loginform %}
